import axios from './config'

export async function getAllRegCodes () {
  return axios.get('/user/regCode')
}

export async function addRegCode (expireIn) {
  return axios.post('/user/regCode', {
    expireIn
  })
}

export async function deleteRegCode (id) {
  return axios.delete('/user/regCode', {
    params: {
      id
    }
  })
}
